import { validateIdcard } from '@/utils/validate.js'

export default {
  //表单
  TemplateGeneration: [
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'taskName',
          label: '任务名称:',
          span: 11,
          placeholder: '请输入任务名称',
          rules: [{ required: true, message: '请输入任务名称', trigger: 'blur' }],
        },
        {
          type: 'input',
          prop: 'taskLocation',
          label: '任务地点:',
          span: 11,
          placeholder: '请输入任务地点',
          rules: [{ required: true, message: '请输入任务地点', trigger: 'blur' }],
        },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'taskContent',
          label: '任务内容:',
          span: 11,
          placeholder: '请输入任务内容',
          rules: [{ required: true, message: '请输入任务内容', trigger: 'blur' }],
        },
        {
          type: 'select',
          prop: 'rescueTeam',
          label: '救援队伍:',
          span: 11,

          placeholder: '请选择救援队伍',
          options: [],
          rules: [{ required: true, message: '请选择救援队伍', trigger: 'change' }],
        },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'medicalEquipment',
          label: '医疗设备:',
          span: 11,
          placeholder: '请输入医疗设备',
          rules: [{ required: true, message: '请输入医疗设备', trigger: 'blur' }],
        },
        {
          type: 'input',
          prop: 'taskLeader',
          label: '任务负责人:',
          span: 11,
          placeholder: '请输入任务负责人',
          rules: [{ required: true, message: '请输入任务负责人', trigger: 'blur' }],
        },
        // {
        //   type: 'select',
        //   prop: 'taskLeader',
        //   label: '任务负责人:',
        //   span: 11,
        //   placeholder: '请选择任务负责人',
        //   options: [
        //     {
        //       value: '0',
        //       label: '男',
        //     },
        //     {
        //       value: '1',
        //       label: '女',
        //     },
        //   ],
        //   rules: [{ required: true, message: '请选择任务负责人', trigger: 'change' }],
        // },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'select',
          prop: 'otherMembers',
          label: '其他成员:',
          span: 11,
          multiple: true,
          placeholder: '请选择其他成员',
          options: [
            {
              value: '0',
              label: '男',
            },
            {
              value: '1',
              label: '女',
            },
          ],
          rules: [{ required: true, message: '请选择其他成员', trigger: 'change' }],
        },
      ],
    },    
  ],

  //表单数据
  TemplateGenerationdata: {
    taskName: '',
    taskLocation: '',
    taskContent: '',
    rescueTeam: '',
    medicalEquipment: '',
    taskLeader: '',
    otherMembers: '',
    simulateEventType: '',
  },

  //表单
  TemplateGenerationitem: [
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'taskCode',
          label: '任务编号:',
          showview: true,
          span: 11,
          placeholder: '请输入任务编号',
          rules: [{ required: false, message: '请输入任务编号', trigger: 'blur' }],
        },
        {
          type: 'input',
          prop: 'simulateEventType',
          label: '事件类型:',
          showview: true,

          span: 11,
          placeholder: '请输入事件类型',
          rules: [{ required: false, message: '请输入事件类型', trigger: 'blur' }],
        },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'taskName',
          label: '任务名称:',
          showview: true,
          span: 11,
          placeholder: '请输入任务名称',
          rules: [{ required: false, message: '请输入任务名称', trigger: 'blur' }],
        },
        {
          type: 'input',
          prop: 'taskLocation',
          label: '任务地点:',
          showview: true,
          span: 11,
          placeholder: '请输入任务地点',
          rules: [{ required: false, message: '请输入任务地点', trigger: 'blur' }],
        },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'taskContent',
          label: '任务内容:',
          showview: true,
          span: 11,
          placeholder: '请输入任务内容',
          rules: [{ required: false, message: '请输入任务内容', trigger: 'blur' }],
        },
        {
          type: 'input',
          prop: 'rescueTeam',
          label: '救援队伍:',
          showview: true,
          span: 11,
          placeholder: '请输入任务地点',
          rules: [{ required: false, message: '请输入任务地点', trigger: 'blur' }],
        },
      ],
    },
    {
      columns: [
        {
          type: 'textarea',
          prop: 'medicalEquipment',
          label: '医疗设备:',
          showview: true,
          placeholder: '请输入医疗设备',
          rows: 2,

          rules: [],
        },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'taskLeader',
          label: '任务负责人:',
          showview: true,
          span: 11,
          placeholder: '请输入任务名称',
          rules: [{ required: false, message: '请输入任务名称', trigger: 'blur' }],
        },
        {
          type: 'input',
          prop: 'otherMembers',
          label: '其他成员:',
          showview: true,

          span: 11,
          placeholder: '请输入任务地点',
          rules: [{ required: false, message: '请输入任务地点', trigger: 'blur' }],
        },
      ],
    },
    {
      justify: 'space-between',
      columns: [
        {
          type: 'input',
          prop: 'taskStatus',
          label: '任务状态:',
          showview: true,
          span: 11,
          placeholder: '请输入任务状态',
          rules: [{ required: false, message: '请输入任务状态', trigger: 'blur' }],
        },
      ],
    },
  ],

  //表单数据
  TemplateGenerationitemdata: {
    id: null,
    taskName: '',
    taskCode: '',
    taskLocation: null,
    taskContent: '',
    rescueTeam: '',
    medicalEquipment: '',
    taskLeader: '',
    otherMembers: '',
    simulateEventType: '',
    taskStatus: '',
  },
}
